/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: ExcelServiceImpl
 * Author:   zmjha
 * Date:     2020/8/2 11:09
 * Description: Execl 导入导出 接口实现类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zmj.service.impl;

import com.zmj.entity.WeiUser;
import com.zmj.mapper.ExcelMapper;
import com.zmj.service.ExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 〈一句话功能简述〉<br> 
 * 〈Execl 导入导出 接口实现类〉
 *
 * @author zmjha
 * @create 2020/8/2
 * @since 1.0.0
 */

@Service
public class ExcelServiceImpl implements ExcelService {

    @Resource
    ExcelMapper excelMapper;

    @Override
    public boolean addExcel(List<WeiUser> list) {
        return excelMapper.addExcel(list);
    }

    @Override
    public List<WeiUser> exportExcel() {
        return excelMapper.exportExcel();
    }

    @Override
    public Integer selCount() {
        return excelMapper.selCount();
    }

    @Override
    public boolean delOne(int id) {
        return excelMapper.delOne(id);
    }

    @Override
    public boolean delAll(List<Integer> ids) {
        return excelMapper.delAll(ids);
    }

    @Override
    public List<WeiUser> selExcel(WeiUser user) {
        System.out.println(excelMapper.selExcel(user));
        return excelMapper.selExcel(user);
    }

    @Override
    public List<String> selCity() {
        return excelMapper.selCity();
    }

    @Override
    public List<String> selCountry() {
        return excelMapper.selCountry();
    }

    @Override
    public List<String> selProvince() {
        return excelMapper.selProvince();
    }

    @Override
    public List<Map<String, Object>> selCountCountry() {
        return excelMapper.selCountCountry();
    }


}